import request from '@/utils/request'
/**
 * AI问答
 * @param {*} query 
 * @returns 
 */
export function aiQuestion(query) {
  return request({
    url: '/ms/ai/questionanswer',
    method: 'get',
    params: query
  })
}/**
 * ai生成旅游计划
 * @param {*} query 
 * @returns 
 */
export function aiPlan(planId) {
  return request({
    url: '/ms/ai/tourism/' + planId,
    method: 'get',
  })
}/**
 * 获取计划
 * @param {*} query 
 * @returns 
 */
export function getPlan(userId) {
  return request({
    url: `/ms/ai/inquireplanlist/${userId}`,
    method: 'get',
  })
}/**
 * 获取计划表
 * @param {*} query 
 * @returns 
 */
export function getUnPlan(userId) {
  return request({
    url: `/ms/ai/inquirenoplanlist/${userId}`,
    method: 'get',
  })
}/**
 * 获取计划详情
 * @param {*} query 
 * @returns 
 */
export function getUnPlanDetail(planId) {
  return request({
    url: `/ms/ai/inquireplandetail/${planId}`,
    method: 'get',
  })
}/**
 * 删除计划表
 * @param {*} query 
 * @returns 
 */
export function delPlan(planId) {
  return request({
    url: `/ms/ai/aidelete/${planId}`,
    method: 'delete',
  })
}/**
 * 删除计划详情
 * @param {*} query 
 * @returns 
 */
export function delPlanDetail(plandetailId) {
  return request({
    url: `/ms/ai/deleteplandetail/${plandetailId}`,
    method: 'delete',
  })
}/**
 * 添加计划表
 * @param {*} query 
 * @returns 
 */
export function addPlanList(data) {
  return request({
    url: '/ms/ai/createplan',
    method: 'post',
    data: data
  })
}/**
 * 添加计划详情
 * @param {*} query 
 * @returns 
 */
export function addPlanListDetail(data) {
  return request({
    url: '/ms/ai/addplandetail',
    method: 'post',
    data: data
  })
}